<?php

namespace App\Libraries\DataBase\Schema;

use Illuminate\Database\Schema\Blueprint;

trait hasPolymorphicAttribute
{
    public function hasPolymorphic(Blueprint $table, $column, $comment)
    {
        $table->uuid($column.'_id')->comment($comment.'编号');
        $table->string($column.'_type')->comment($comment.'类型');
    }
}
